package com.hmz.backend.controller.account;


import cn.hutool.json.JSONObject;
import com.hmz.backend.service.account.RegisterService;
import jakarta.annotation.Resource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.web.bind.annotation.*;

@RestController
public class RegisterController {
    @Resource(name = "registerUserService")
    private RegisterService registerUserService;
    @PostMapping("/register")
    public JSONObject register(@RequestBody JSONObject data){
        return registerUserService.register(data);
    }
}
